package com.qing.design.patterns.visitor.example.visitor;

import com.qing.design.patterns.visitor.example.user.impl.Student;
import com.qing.design.patterns.visitor.example.user.impl.Teacher;

/**
 * 定义访问数据接口
 */
public interface Visitor {

    //访问学生信息
    void visit(Student student);

    //访问老师信息
    void visit(Teacher teacher);
}
